/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.dinner.entity.order;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 订单管理Entity
 * @author dai
 * @version 2018-11-26
 */
public class ResOrderDetail extends DataEntity<ResOrderDetail> {
	
	private static final long serialVersionUID = 1L;
	private ResOrder resOrder;		// 订单Id 父类
	private String resCommodity;		// 商品Id
	private String name;		// 商品名称
	private String price;		// 商品价格
	private String num;		// 商品数量
	
	public ResOrderDetail() {
		super();
	}

	public ResOrderDetail(String id){
		super(id);
	}

	public ResOrderDetail(ResOrder resOrder){
		this.resOrder = resOrder;
	}

	@Length(min=1, max=64, message="订单Id长度必须介于 1 和 64 之间")
	public ResOrder getResOrder() {
		return resOrder;
	}

	public void setResOrder(ResOrder resOrder) {
		this.resOrder = resOrder;
	}
	
	@Length(min=0, max=64, message="商品Id长度必须介于 0 和 64 之间")
	public String getResCommodity() {
		return resCommodity;
	}

	public void setResCommodity(String resCommodity) {
		this.resCommodity = resCommodity;
	}
	
	@Length(min=0, max=100, message="商品名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
}